<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>体检分类管理</title>
  <link rel="stylesheet" type="text/css" href="../../themes/default/easyui.css">
  <link rel="stylesheet" type="text/css" href="../../themes/icon.css">
  <script type="text/javascript" src="../../easyui/js/jquery.min.js"></script>
  <script type="text/javascript" src="../../easyui/js/jquery.easyui.min.js"></script>
  <style>
    body {
      font-size: 14px;
    }
    a {
      display: inline-block;
      text-decoration: none;
      color: #000;
      padding: 0;
      margin: 0;
    }
    .title {
      width: 100%;
      height: 50px;
      line-height: 50px;
      border-bottom: 3px solid #000;
    }
    .form-content{
      display: block;
      float: left;
      width: 100%;
      margin-bottom: 20px;
    }
    .form-item{
      float: left;
      margin-right: 20px;
      margin-top: 20px;
    }
    .form-item .btn {
      width: 80px;
      height: 35px;
      line-height: 35px;
      text-align: center;
      color: #fff;
      font-size: 16px;
      background: rgba(64, 158, 255, 1);
      border-radius: 10px;
    }
    .content_buttom{
      margin-top: 20px;
      float: left;
    }
    .detail{
      width: 100px;
      color: rgba(64, 158, 255, 1);
    }
    .enable{
      color: #00ee00;
    }
    .deactivated{
      color: red;
    }
    .operation{
      width: 100%;
      float: left;
    }
    .operation-add, .operation-delete, .operation-enable, .operation-deactivated{
      float: left;
      margin-right: 20px;
      width: 80px;
      height: 35px;
      line-height: 35px;
      text-align: center;
      font-size: 16px;
      border-radius: 5px;
      border: 1px solid;
      cursor: pointer;
    }
    .operation-add{
      color: #fff;
      background: rgba(64, 158, 255, 1);
      border-color: rgba(64, 158, 255, 1);
    }
    .operation-delete{
      color: red;
    }
    .operation-enable{
      color: rgba(64, 158, 255, 1);
    }
    .operation-deactivated{
      color: orange;
    }
  </style>
</head>
<body>
  <div class="content">
    <div class="title">体检分类管理</div>
    <form class="form-content" id="ff" method="post">
      <div class="form-item">
        <label for="classification">体检分类：</label>
        <input class="easyui-validatebox" placeholder="输入内容" type="text" id="classification" name="classification" style="width: 270px;height: 30px;"/>
      </div>
      <div class="form-item">
        <a href="#" class="btn">搜索</a>
      </div>
    </form>
    <div class="operation">
      <div class="operation-add">新增</div>
      <div class="operation-delete">删除</div>
      <div class="operation-enable">启用</div>
      <div class="operation-deactivated">停用</div>
    </div>
    <div class="content_buttom">
      <table class="easyui-datagrid" data-options="ctrlSelect:true,pagination:true" style="width: 902px">
        <thead>
          <tr>
            <th data-options="field:'a1',width:100,align:'center'">序号</th>
            <th data-options="field:'a3',width:200,align:'center'">体检分类</th>
            <th data-options="field:'a4',width:300,align:'center'">更新时间</th>
            <th data-options="field:'a5',width:100,align:'center'">排序</th>
            <th data-options="field:'a6',width:100,align:'center'">启用状态</th>
            <th data-options="field:'a7',width:100,align:'center'">操作</th>
          </tr>
        </thead>
        <tbody>
          <tr>
            <td>1</td>
            <td>入职体检</td>
            <td>2023.03.08  16:38</td>
            <td>1</td>
            <td><div class="enable">已启用</div></td>
            <td><a href="#" class="detail">查看</a></td>
          </tr>
          <tr>
            <td>1</td>
            <td>入职体检</td>
            <td>2023.03.08  16:38</td>
            <td>1</td>
            <td><div class="deactivated">已停用</div></td>
            <td><a href="#" class="detail">查看</a></td>
          </tr>
        </tbody>
      </table>
    </div>
    <script>
      $(function () {
        // 新增方法
        $(".operation-add").on('click', function () {
          window.location.href = './add.html'
        })
      })
    </script>
  </div>
</body>
</html>
